package cn.iocoder.yudao.module.shop.category.pojo.vo;

import cn.iocoder.yudao.framework.validation.InEnumValue;
import cn.iocoder.yudao.module.api.shop.info.enums.ShopOwnerTypeEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

@Schema(description = "管理后台 - 行业类目新增/更新 Request VO")
@Data
public class ShopCategorySaveReqVO {

    @Schema(description = "类目编号", example = "2")
    private Long id;

    @Schema(description = "商家类型：0-实体店（线下实体门店）、1-中间商（线上进货零售）、2-供货商（线上供应货物）", requiredMode = Schema.RequiredMode.REQUIRED, defaultValue = "0", example = "0")
    @InEnumValue(value = ShopOwnerTypeEnum.class)
    private Integer type;

    @Schema(description = "类目标识", example = "more")
    private String code;

    @Schema(description = "父类目编号", example = "0")
    private Long parentId;

    @Schema(description = "类目名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "办公文具")
    @NotBlank(message = "类目名称不能为空")
    private String name;

    @Schema(description = "移动端类目图")
    private String iconUrl;

    @Schema(description = "跳转链接")
    private String linkUrl;

    @Schema(description = "是否推荐", example = "false")
    private Boolean recommend;

    @Schema(description = "类目排序", example = "1")
    private Integer sort;

    @Schema(description = "开启状态", example = "0")
    private Integer status;

}
